const express = require('express');
const router = express.Router()
const bodyParser = require('body-Parser');
router.use(bodyParser.urlencoded({ extended: false }));

// mysql数据库
router.use(require('./db.js'));

// 引入users
const users = require('./contrllor/users.js');

// 引入peroson
const person=require('./contrllor/person.js');

// 选择
router.get('/select', users.select);
// 添加
router.post('/add',users.add);
// 更新
router.post('/update',users.update);
// 删除
router.get('/del',users.del);

// 编辑
router.get('/find',users.find);

router.post('/edit',users.edit);


// 练习
router.get('/123',person.say);
module.exports = router;